package com.kingdee.eas.xbwebservice;

import com.kingdee.bos.framework.ejb.EJBRemoteException;
import com.kingdee.bos.util.BOSObjectType;
import java.rmi.RemoteException;
import com.kingdee.bos.framework.AbstractBizCtrl;
import com.kingdee.bos.orm.template.ORMObject;

import com.kingdee.bos.Context;
import com.kingdee.bos.BOSException;
import com.kingdee.eas.xbwebservice.*;
import java.lang.String;
import com.kingdee.bos.framework.*;
import com.kingdee.bos.util.*;

public class XBWebServiceFacade extends AbstractBizCtrl implements IXBWebServiceFacade
{
    public XBWebServiceFacade()
    {
        super();
        registerInterface(IXBWebServiceFacade.class, this);
    }
    public XBWebServiceFacade(Context ctx)
    {
        super(ctx);
        registerInterface(IXBWebServiceFacade.class, this);
    }
    public BOSObjectType getType()
    {
        return new BOSObjectType("E62A6B63");
    }
    private XBWebServiceFacadeController getController() throws BOSException
    {
        return (XBWebServiceFacadeController)getBizController();
    }
    /**
     *testWebService-User defined method
     *@param arg1 arg1
     *@return
     */
    public String testWebService(String arg1) throws BOSException
    {
        try {
            return getController().testWebService(getContext(), arg1);
        }
        catch(RemoteException err) {
            throw new EJBRemoteException(err);
        }
    }
    /**
     *invoke-User defined method
     *@param methodName methodName
     *@param arg arg
     *@return
     */
    public String invoke(String methodName, String arg) throws BOSException
    {
        try {
            return getController().invoke(getContext(), methodName, arg);
        }
        catch(RemoteException err) {
            throw new EJBRemoteException(err);
        }
    }
    /**
     *getBytes-User defined method
     *@param methodName methodName
     *@param args args
     *@return
     */
    public byte[] getBytes(String methodName, String args) throws BOSException
    {
        try {
            return getController().getBytes(getContext(), methodName, args);
        }
        catch(RemoteException err) {
            throw new EJBRemoteException(err);
        }
    }
}